<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>A项目</title>

<script type="text/javascript"	src="js/jquery-3.3.1.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$.ajax({
			type : "get",
			async : false,
			url : "http://api.web.com:800/b/getBInfo",
			dataType : "json",
			//jsonp : "jsonpCallback",//服务端用于接收callback调用的function名的参数 ，  dataType : "jsonp",
			success : function(data) {
				alert(data["code"]);
			},
			error : function() {
				alert('fail');
			}
		});
	});
</script> 
</head>
<body>
<h3>这里是A项目，将调用B项目</h3>
</body>
</html>